package com.aishua.fire.jpa.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import com.aishua.fire.common.anno.EntityDesc;

import lombok.Data;

@EntityDesc(desc="账户组表")
@Entity
@Data
public class Accountteam  implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// 没有默认构造会报错
    public Accountteam(){
    }
    
    public Accountteam(String accountteamName, String accountteamDesc, Date createDate) {
		super();
		this.accountteamName = accountteamName;
		this.accountteamDesc = accountteamDesc;
		this.createDate = createDate;
	}


	/**
     * 角色id
     */
    @Id
    @GeneratedValue
    @Column(name = "accountteamId",columnDefinition="bigint COMMENT '主键，自动生成'")
    private Long accountteamId;
    
    /**
     * 账户组名称
     */
    @Column(nullable = false,name = "accountteamName",columnDefinition="varchar(32) COMMENT '用户组名称'")
    private String accountteamName;
    
    /**
     * 账户组描述
     */
    @Column(nullable = false,name = "accountteamDesc",columnDefinition="varchar(64) COMMENT '用户组描述'")
    private String accountteamDesc;
    
    /**
     * 创建时间
     */
    @Column(nullable = false,name = "createDate",columnDefinition="DATETIME COMMENT '创建时间'")
    private Date createDate;
    
}
